<template>
  <el-container class="home-container">
    <el-header class="header">
      <div class="page-title flex-row-vertical">
        <el-image class="logo-img" :src="logo" />
        <router-link to="/">汉德低代码平台</router-link>
      </div>
      <user-profile />
    </el-header>
    <el-main class="home-layout">
      <router-view />
    </el-main>
    <el-footer class="footer">
      <div>©</div>
      <el-image class="hdweb-logo-img" :src="hdwebLogo" />
      <div>汉德前端团队（HDWEB）出品</div>
    </el-footer>
  </el-container>
</template>

<script lang="ts" setup>
import logo from '@/assets/hd-logo.png'
import hdwebLogo from '@/assets/hdweb-log.png'
</script>
<style lang="scss" scoped>
.home-container {
  // height: 100%;
  background: #fff;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #122a4e;
}
.page-title {
  color: #fff;
  .logo-img {
    margin-right: 10px;
    width: 32px;
    height: 32px;
  }
}

.home-layout {
  padding: 0;
}

.footer {
  background-color: #000000;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  .hdweb-logo-img {
    margin: 0 2px 0 6px;
    width: 24px;
    height: 24px;
  }
}
</style>
